﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Domain.Abstract;
using Domain.Concrete;
using Pro260Website.Models;

namespace Pro260Website.Controllers
{
    public class NavController : Controller
    {
        private readonly IPlatformRepository _platformRepository;

        public NavController(IPlatformRepository platformRepo)
        {
            _platformRepository = platformRepo;
        }

        public PartialViewResult Menu(string genre = null)
        {
            ViewBag.SelectedGenre = genre;

    //        IEnumerable<string> genres = _repository.Games
     //           .Select(x => x.Genre)
    //            .Distinct()
    //            .OrderBy(x => x);

            var navViewModel = new NavViewModel();

            return PartialView(navViewModel);
        }
    }
}
